Optimal. Leaf size=41 \[ \frac{\log \left (B \log \left (e (a+b x)^n (c+d x)^{-n}\right )+A\right )}{B n (b c-a d)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.122027, antiderivative size = 41, normalized size of antiderivative = 1., number of steps used = 1, number of rules used = 1, integrand size = 40, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.025, Rules used = {6684} \[ \frac{\log \left (B \log \left (e (a+b x)^n (c+d x)^{-n}\right )+A\right )}{B n (b c-a d)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 6684
Rubi steps
\begin{align*} \int \frac{1}{(a+b x) (c+d x) \left (A+B \log \left (e (a+b x)^n (c+d x)^{-n}\right )\right )} \, dx &=\frac{\log \left (A+B \log \left (e (a+b x)^n (c+d x)^{-n}\right )\right )}{B (b c-a d) n}\\ \end{align*}
Mathematica [A] time = 0.0874408, size = 39, normalized size = 0.95 \[ \frac{\log \left (B \log \left (e (a+b x)^n (c+d x)^{-n}\right )+A\right )}{b B c n-a B d n} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 0.407, size = 368, normalized size = 9. \begin{align*} -{\frac{1}{Bn \left ( ad-bc \right ) }\ln \left ( \ln \left ( \left ( dx+c \right ) ^{n} \right ) -{\frac{1}{2\,B} \left ( -iB\pi \,{\it csgn} \left ( ie \right ){\it csgn} \left ({\frac{i \left ( bx+a \right ) ^{n}}{ \left ( dx+c \right ) ^{n}}} \right ){\it csgn} \left ({\frac{ie \left ( bx+a \right ) ^{n}}{ \left ( dx+c \right ) ^{n}}} \right ) +iB\pi \,{\it csgn} \left ( ie \right ) \left ({\it csgn} \left ({\frac{ie \left ( bx+a \right ) ^{n}}{ \left ( dx+c \right ) ^{n}}} \right ) \right ) ^{2}-iB\pi \,{\it csgn} \left ( i \left ( bx+a \right ) ^{n} \right ){\it csgn} \left ({\frac{i}{ \left ( dx+c \right ) ^{n}}} \right ){\it csgn} \left ({\frac{i \left ( bx+a \right ) ^{n}}{ \left ( dx+c \right ) ^{n}}} \right ) +iB\pi \,{\it csgn} \left ( i \left ( bx+a \right ) ^{n} \right ) \left ({\it csgn} \left ({\frac{i \left ( bx+a \right ) ^{n}}{ \left ( dx+c \right ) ^{n}}} \right ) \right ) ^{2}+iB\pi \,{\it csgn} \left ({\frac{i}{ \left ( dx+c \right ) ^{n}}} \right ) \left ({\it csgn} \left ({\frac{i \left ( bx+a \right ) ^{n}}{ \left ( dx+c \right ) ^{n}}} \right ) \right ) ^{2}-iB\pi \, \left ({\it csgn} \left ({\frac{i \left ( bx+a \right ) ^{n}}{ \left ( dx+c \right ) ^{n}}} \right ) \right ) ^{3}+iB\pi \,{\it csgn} \left ({\frac{i \left ( bx+a \right ) ^{n}}{ \left ( dx+c \right ) ^{n}}} \right ) \left ({\it csgn} \left ({\frac{ie \left ( bx+a \right ) ^{n}}{ \left ( dx+c \right ) ^{n}}} \right ) \right ) ^{2}-iB\pi \, \left ({\it csgn} \left ({\frac{ie \left ( bx+a \right ) ^{n}}{ \left ( dx+c \right ) ^{n}}} \right ) \right ) ^{3}+2\,B\ln \left ( e \right ) +2\,B\ln \left ( \left ( bx+a \right ) ^{n} \right ) +2\,A \right ) } \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.72913, size = 66, normalized size = 1.61 \begin{align*} \frac{\log \left (-\frac{B \log \left ({\left (b x + a\right )}^{n}\right ) - B \log \left ({\left (d x + c\right )}^{n}\right ) + B \log \left (e\right ) + A}{B}\right )}{{\left (b c n - a d n\right )} B} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 0.491652, size = 105, normalized size = 2.56 \begin{align*} \frac{\log \left (-B n \log \left (b x + a\right ) + B n \log \left (d x + c\right ) - B \log \left (e\right ) - A\right )}{{\left (B b c - B a d\right )} n} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.28151, size = 51, normalized size = 1.24 \begin{align*} \frac{\log \left (B n \log \left (b x + a\right ) - B n \log \left (d x + c\right ) + A + B\right )}{B b c n - B a d n} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]